# -*- coding: utf-8 -*-
# @Time : 2025/3/11 15:51
# @Author: LXK
# @File: game.py
# @Software: PyCharm


import random

print('-------------------- 我爱鱼C工作室 ----------------------')
time = 3
secret = random.randint(1, 10)
guess = 0
print('不妨猜一下小甲鱼在心里想的是哪个数字？')


while (guess != secret) and (time > 0):
    temp = input()
    # temp = input('哎呀，猜错了，请重新输入吧：')
    guess = int(temp)
    time = time - 1  # 用户每输入一次，可用机会就 -1
    if guess == secret:
        print('卧槽，你是小甲鱼心里的蛔虫吗？！')
        print('哼，猜中了也没有奖励！')
    else:
        if guess > secret:
            print('哥，大了，大了~~~~')
        else:
            print('嘿，小了，小了~~~')
    if time > 0:
        print('再试一次吧：', end=" ")
    else:
        print('机会用光咯T_T')

print('游戏结束，不玩了^_^')

